use_frameworks!
platform :ios, '12.0'
inhibit_all_warnings!


#  github 官方 pod 源
source 'https://github.com/CocoaPods/Specs.git'
#  阿里云 pod 源
source 'https://github.com/aliyun/aliyun-specs.git'
source 'https://gitee.com/cansng/p21Specs.git'


target 'IMSApiModule_Example' do
  pod 'IMSApiModule', :path => '../'

  target 'IMSApiModule_Tests' do
    inherit! :search_paths

    
  end
end


post_install do |installer|


  # 修改iOS Deployment Target
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # config.build_settings['ENABLE_BITCODE'] ='NO'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64'
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
    end
  end


 # 移除MobileCoreServices库
#  framework = installer.pods_project.frameworks_group["iOS"]["MobileCoreServices.framework"]
#  framework.referrers.each do |ref|
#    if ref.isa == "PBXBuildFile"
#      ref.remove_from_project
#    end
#  end
#  framework.remove_from_project


end
